package fr.oz.core.events 
{
	import flash.events.Event;
	import fr.oz.core.datas.ProfilListDatas;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class ProfilEvent extends Event 
	{
		public static const PROFIL_SELECTED 	: String = "profil_selected";
		/*	Le pad de profil est en cours de modification	*/
		public static const PROFIL_HANDLE		: String = "profil_handle";
		public static const PROFIL_FREE			: String = "profil_free";
		
		public static const PROFIL_CHANGED		: String = "profil_changed";
		public static const PROFIL_ACTIV_SWITCH	: String = "profil_active_switch";
		
		public var profil:ProfilListDatas;
		
		public function ProfilEvent(type:String, _profil:ProfilListDatas = null, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			profil = _profil;
			
		} 
		
		public override function clone():Event 
		{ 
			return new ProfilEvent(type, profil, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ProfilEvent", "type", "profil", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}